package com.xiaochi.subject.application.convert;

import com.xiaochi.subject.application.dto.SubjectCategoryDTO;
import com.xiaochi.subject.domain.entity.SubjectCategoryBO;
import com.xiaochi.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zqx
 * @since 2024/7/20
 */
@Mapper
public interface SubjectCategoryDTOConverter {

    SubjectCategoryDTOConverter INSTANCE = Mappers.getMapper(SubjectCategoryDTOConverter.class);

    SubjectCategoryBO CategoryDTOToCategoryBo(SubjectCategoryDTO subjectCategoryDTO);

    List<SubjectCategoryDTO> CategoryBOListToCategoryDTO(List<SubjectCategoryBO> subjectCategoryBOList);

    SubjectCategoryDTO CategoryBoToCategoryDTO(SubjectCategoryBO subjectCategoryBO);
}
